(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/components/shangwu/wenwu-slide/index" ], {
    "098e": function(e, n, t) {
        t.r(n);
        var i = t("a466"), o = t("b11d");
        for (var r in o) [ "default" ].indexOf(r) < 0 && function(e) {
            t.d(n, e, function() {
                return o[e];
            });
        }(r);
        t("0d95");
        var c = t("f0c5"), a = Object(c.a)(o.default, i.b, i.c, !1, null, "cdd8945e", null, !1, i.a, void 0);
        n.default = a.exports;
    },
    "6f56": function(e, n, t) {
        var i = t("4ea4");
        Object.defineProperty(n, "__esModule", {
            value: !0
        }), n.default = void 0;
        var o = i(t("9523")), r = t("26cb");
        function c(e, n) {
            var t = Object.keys(e);
            if (Object.getOwnPropertySymbols) {
                var i = Object.getOwnPropertySymbols(e);
                n && (i = i.filter(function(n) {
                    return Object.getOwnPropertyDescriptor(e, n).enumerable;
                })), t.push.apply(t, i);
            }
            return t;
        }
        function a(e) {
            for (var n = 1; n < arguments.length; n++) {
                var t = null != arguments[n] ? arguments[n] : {};
                n % 2 ? c(Object(t), !0).forEach(function(n) {
                    (0, o.default)(e, n, t[n]);
                }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : c(Object(t)).forEach(function(n) {
                    Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
                });
            }
            return e;
        }
        n.default = {
            name: "EnjoyGoodsBanner",
            props: {
                list: {
                    type: Array,
                    default: function() {
                        return [];
                    }
                },
                type: {
                    type: Number,
                    default: 1
                }
            },
            data: function() {
                return {
                    currentIndex: 0
                };
            },
            computed: a(a({}, (0, r.mapState)({
                colorRecIndex: function(e) {
                    return e.shangwu.colorRecIndex;
                },
                zodiacRecIndex: function(e) {
                    return e.shangwu.zodiacRecIndex;
                }
            })), {}, {
                filtrationList: function() {
                    return this.list.map(function(e) {
                        return e.recommend_antique;
                    });
                },
                isCircular: function() {
                    return this.filtrationList.length > 5;
                }
            }),
            methods: a(a({}, (0, r.mapMutations)([ "allotColorRecIndex", "allotZodiacRecIndex" ])), {}, {
                swiperChange: function(e) {
                    var n = e.detail.current;
                    this.currentIndex = n, 1 === this.type ? this.allotColorRecIndex(n) : this.allotZodiacRecIndex(n);
                },
                previous: function() {
                    this.currentIndex > 0 ? this.currentIndex-- : this.isCircular && (this.currentIndex = this.list.length - 1), 
                    1 === this.type ? this.allotColorRecIndex(this.currentIndex) : this.allotZodiacRecIndex(this.currentIndex);
                },
                later: function() {
                    this.currentIndex < this.list.length - 1 ? this.currentIndex++ : this.isCircular && (this.currentIndex = 0), 
                    1 === this.type ? this.allotColorRecIndex(this.currentIndex) : this.allotZodiacRecIndex(this.currentIndex);
                },
                goSlide: function(e) {
                    1 === this.type ? (this.handleLinkRoute("/pages/enjoy/color/slide/index?id=".concat(e.id)), 
                    this.handleCommonBeacon("appreciation_color_click"), this.handleCommonUma("Um_Event_ExhibitsClick", {
                        Um_Key_ExhibitsID: e.id,
                        Um_Key_ExhibitsName: e.title,
                        Um_Key_SourceColumn: "赏颜色"
                    })) : (this.handleLinkRoute("/pages/enjoy/zodiac/slide/index?id=".concat(e.id)), 
                    this.handleCommonBeacon("appreciation_animal_click"), this.handleCommonUma("Um_Event_ExhibitsClick", {
                        Um_Key_ExhibitsID: e.azcId,
                        Um_Key_ExhibitsName: e.title,
                        Um_Key_SourceColumn: "赏生肖"
                    }));
                }
            })
        };
    },
    a466: function(e, n, t) {
        t.d(n, "b", function() {
            return o;
        }), t.d(n, "c", function() {
            return r;
        }), t.d(n, "a", function() {
            return i;
        });
        var i = {
            imageView: function() {
                return Promise.all([ t.e("common/vendor"), t.e("pages/components/image-view/index") ]).then(t.bind(null, "2ff9"));
            },
            tmIcon: function() {
                return Promise.all([ t.e("common/vendor"), t.e("components/tm-icon/index") ]).then(t.bind(null, "f4eb"));
            }
        }, o = function() {
            this.$createElement;
            this._self._c;
        }, r = [];
    },
    b11d: function(e, n, t) {
        t.r(n);
        var i = t("6f56"), o = t.n(i);
        for (var r in i) [ "default" ].indexOf(r) < 0 && function(e) {
            t.d(n, e, function() {
                return i[e];
            });
        }(r);
        n.default = o.a;
    }
} ]), (global.webpackJsonp = global.webpackJsonp || []).push([ "pages/components/shangwu/wenwu-slide/index-create-component", {
    "pages/components/shangwu/wenwu-slide/index-create-component": function(e, n, t) {
        t("543d").createComponent(t("098e"));
    }
}, [ [ "pages/components/shangwu/wenwu-slide/index-create-component" ] ] ]);